<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input id="btn" type="button" value="获取历史记录">
		<a href="轮播图.html">轮播图</a>
		<input id="forword" type="button" value="前进">
		<script>
			// alert(history.length);
			var btn = document.getElementById('btn');
			btn.onclick = function() {
				alert(history.length);
			}
			var forword = document.getElementById('forword');
			forword.onclick = function() {
				history.forward();
			}
		</script>
	</body>
</html>
